package org.mc.sbd.mock.application;


import org.mc.sbd.mock.infrastructure.BizException;
import org.springframework.stereotype.Service;

@Service
public class UserLoginApplicationService {
    public String loginByMobilePhone(String mobilePhoneNo, String captchaCode) {
        if ("15328990000".equals(mobilePhoneNo) && "123456".equals(captchaCode)) {
            return "登录成功";
        } else {
            throw new BizException("验证码错误");
        }
    }
}
